<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

Saisie des correspondances:

<table>
    <thead>
        <tr>
            <th>Type</th>
            <th>ID STS</th>
            <th>ID SIECLE</th>
            <th>Nbr occ.</th>
        </tr>
    </thead>
    <tbody>
        <c:forEach items="${rapportTraitement.correspondances}" var="cor">
        <tr>    
            <td>${cor.type}</td>
            <td>${cor.idSts}</td>
            <td>
                <select name="correspondance_${cor.id}">
                    <c:if test="${cor.type == 'DIV'}">
                        <c:forEach items="${divisions}" var="cl">
                            <option value="${cl.codeStructure}">${cl.codeStructure} - ${cl.libelle}</option>
                        </c:forEach>
                    </c:if> 
                    <c:if test="${cor.type == 'GRP'}">
                        <c:forEach items="${groupes}" var="grp">
                            <option value="${grp.codeStructure}">${grp.codeStructure} - ${grp.libelle}</option>
                        </c:forEach>
                    </c:if>
                    <c:if test="${cor.type == 'MAT'}">
                        <c:forEach items="${matieres}" var="mat">
                            <option value="${mat.codeSiecle}">${mat.codeSiecle} - ${mat.libelle}</option>
                        </c:forEach>
                    </c:if>
                </select>
            </td>
            <td>
                ${cor.nbOccurences}
            </td>
        </tr>
        </c:forEach>
    </tbody>
</table>

<button type="submit" class="btn btn-primary btn-xs"/>Enregistrer</button>